<?php 
require_once("includes/functions.php");
require_once("includes/session.php"); 
ensure_logged_in("public");
if($logintype = isloggedin()){
redirect_to_base("public");
}
generate_header("public", "Existing Customers");
?>
      <div id="single_main_block">
	<p>You are currently not logged in. Please log in below.</p>
	<p>If you are interested in becoming part of our bank, please contact us <a href="contact_us.php">here</a></p>
	<form id="login_form" method="post" action="form_processing/login_form.php">
	  <fieldset>
	    <legend>Login Information</legend>
	    <ul>
	      <li><label for="login_username">Username: </label>
		<input type="text" id="login_username" name="userid"
		size="20" />
		<span class="form-desc">Please enter your username (Not more
		than 20 chars.)</span></li>
	      <li><label for="login_password">Password: </label>
		<input type="password" id="login_password" name="userpass"
		       size="20" />
		<span class="form-desc">Please enter your password.(Not more
		than 20 chars.)</span></li>
	    </ul>
	    <input type="submit" value="Log in" />
	  </fieldset>
	</form>
      </div>
<?php
    include("includes/footer.php");
?>
